 <template>
  <div class="info clearfix">
    <h2>{{ message.siteName }}( {{ message.siteNo }} )</h2>
    <span>最新数据时间</span>
    <span>{{ message.time }}</span>
    <span>电池仓最高温度</span>
    <span>{{ message.warehouseMax }}℃</span>
    <span>充电柜最高温度</span>
    <span>{{ message.cabinetMax }}℃</span>
    <span>线槽最高温度</span>
    <span>{{ message.lineMax }}℃</span>
  </div>
</template>
<script>
export default {
  props: ["message"],
  data() {
    return {
      
    };
  },
  created() {},
  mounted() {},
};
</script>
<style scoped>
.info {
  position: absolute;
  left: 3%;
  top: 5%;
  width: 300px;
  height: 300px;
  border: 1px solid #13519c;
  box-sizing: border-box;
  padding-top: 30px;
  color: #fff;
  z-index: 0;
  background-color: rgba(19, 81, 156, 0.1);
}
.info h2 {
  padding-left: 20px;
  box-sizing: border-box;
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 500;
}
.info span:nth-of-type(2n-1) {
  width: 40%;
}
.info span:nth-of-type(2n) {
  width: 60%;
}
.info span {
  display: inline-block;
  box-sizing: border-box;
  padding-left: 20px;
  float: left;
  height: 20px;
  line-height: 20px;
  margin-bottom: 30px;
  font-size: 14px;
}
</style>
